package com.gc.server.service;

import com.gc.server.entity.SchoolEntity;
import com.gc.server.entity.ShopEntity;
import com.gc.server.vo.SchoolVo;
import com.yf.service.BaseService;

import java.io.InputStream;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

import org.springframework.web.multipart.MultipartFile;

/**
 * 学校Service接口
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Thu Oct 22 19:28:49 CST 2020
 */
public interface SchoolService extends BaseService<SchoolEntity> {

    /************自动生成**************/
    List<SchoolVo> findVo(SchoolVo vo);

    SchoolVo getVo(Long id);

    int updateVo(SchoolVo vo);

    int saveVo(SchoolVo vo);

    void downLoad(HttpServletResponse response, List<SchoolVo> list);

    void upload(InputStream file);

    /***********BACK***********/


    /***********API***********/

    List<SchoolEntity> findByUserId(Long userId);

    List<SchoolEntity> findByRouteId(Long routeId);

    void add(Long userId, SchoolEntity schoolEntity);

    void add(Long userId, List<Long> schoolIds);

}
